package com.yangming.springboot.base;

/**
 * @创建人 ym
 * @创建时间 2021/3/12 0012
 * @描述
 **/
public class ResultInfo {

    private Integer code = 200; //状态码
    private String msg = "success";  //消息

    private Object result; //结果对象

    public ResultInfo(){}

    public ResultInfo(String msg){
        this.msg = msg;
    }

    public Integer getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }

    public Object getResult(){
        return result;
    }

    public void setCode(Integer code){
        this.code = code;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

    public void setResult(Object result){
        this.result = result;
    }


}
